var user = getUserInfo();

if(!user){
    window.confirm("没有登录, 不允许进来");
}

var vue = new Vue({
    el:"#app",
    data:{
        owner:{},
        visitors:[],
        totalView:200,
        todayView:20
    },
    methods:{

    },
    filters:{

    },
    mounted:function () {
        var param = getParams();
        //查询指定id用户对象, 如果没有自己写接口, id是用户id(不一定是当前用户)
        ajaxGet("/visit/get",{id:param.ownerId}, function (data) {
            var map=data.data;
            vue.owner = map.owner;
            vue.visitors = map.visitors;
            vue.totalView = map.totalView;
            vue.todayView = map.todayView;
        });

    }
});

